package Figures;

import java.awt.*;
import java.io.Serializable;

/**
 * 类功能描述：
 *继承自Figure基类，ClosedGraphics作为封闭图形的父类，声明了封闭图形特有的属性和方法。
 * @author lix
 * @date 2023/12/28 21:24
 */

public abstract class  ClosedGraphics extends Figure implements Serializable {

    protected Color fillColor;

    public ClosedGraphics(Point start, Point end,int size,Color color) {
        super(start, end,size,color);

    }


    public Color getFillColor() {
        return fillColor;
    }

    public void setFillColor(Color fillColor) {
        this.fillColor = fillColor;
    }

    abstract public void fill(Graphics2D g);


}
